package com.heima.model.media.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 自媒体子账号信息表
 * </p>
 *
 * @author itheima
 */
@Data
@Builder
@TableName("wm_sub_user")
@ApiModel(value="WmSubUser", description="自媒体子账号信息表")
public class WmSubUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "主账号ID")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty(value = "子账号ID")
    @TableField("children_id")
    private Integer childrenId;


}
